package com.hanthink.system.service.impl.repair;

import com.hanthink.system.domain.repair.RepairTask;
import com.hanthink.system.mapper.repair.RepairTaskMapper;
import com.hanthink.system.service.repair.IRepairTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 质量称重Service业务层处理
 * 
 * @author tzy
 * @date 2023-09-04
 */
@Service
public class RepairTaskServiceImpl implements IRepairTaskService
{
    @Autowired
    private RepairTaskMapper repairTaskMapper;

    /**
     * 查询质量称重
     * 
     * @param id 质量称重ID
     * @return 质量称重
     */
    @Override
    public RepairTask selectRepairTaskById(Long id)
    {
        return repairTaskMapper.selectRepairTaskById(id);
    }

    /**
     * 查询质量称重列表
     * 
     * @param emQualityWeighing 质量称重
     * @return 质量称重
     */
    @Override
    public List<RepairTask> selectRepairTaskList(RepairTask emQualityWeighing)
    {
        return repairTaskMapper.selectRepairTaskList(emQualityWeighing);
    }

    /**
     * 新增质量称重
     * 
     * @param emQualityWeighing 质量称重
     * @return 结果
     */
    @Override
    public int insertRepairTask(RepairTask emQualityWeighing)
    {

        return repairTaskMapper.insertRepairTask(emQualityWeighing);
    }

    /**
     * 修改质量称重
     * 
     * @param emQualityWeighing 质量称重
     * @return 结果
     */
    @Override
    public int updateRepairTask(RepairTask emQualityWeighing)
    {
        return repairTaskMapper.updateRepairTask(emQualityWeighing);
    }

    /**
     * 批量删除质量称重
     * 
     * @param ids 需要删除的质量称重ID
     * @return 结果
     */
    @Override
    public int deleteRepairTaskByIds(Long[] ids)
    {
        return repairTaskMapper.deleteRepairTaskByIds(ids);
    }

    /**
     * 删除质量称重信息
     * 
     * @param id 质量称重ID
     * @return 结果
     */
    @Override
    public int deleteRepairTaskById(Long id)
    {
        return repairTaskMapper.deleteRepairTaskById(id);
    }




}
